Just a list of MembershipBean objects, with a get method to allow retrieving them by name


Properties

Name Returns Notes Example
groupByOrg Map
first MembershipBean
last MembershipBean

Methods

Name Returns Notes Example
hasGroup ( groupName ) boolean
filterByOrg ( orgId ) MembershipList Return a new list which is this list filtered so it only contains memberships to the organisation with the given orgid
- $user.allMemberships().filterByOrg("ACMELTD")
filterByOrgType ( orgType ) MembershipList Return a new list which is this list filtered so it only contains memberships to the organisation with the given orgTYpe
- $user.allMemberships().filterByOrgType("STORES")
filterByGroup ( groupName ) MembershipList Return a new list which is this list filtered so it only contains memberships to the given group
- $user.allMemberships().filterByGroup("admin")
filterByGroupFolder ( groupFolderName ) MembershipList
filterByGroupType ( groupType ) MembershipList
filterByRole ( roleName ) MembershipList
filterSubOrgs ( ) MembershipList Return a list which only includes memberships to sub-organisations
toOrgsList ( ) List Get a list of all orgs in the current membership list
toOrgsList ( nonRoot ) List
toGroupsList ( ) List Get a list of all groups in the current membership list